<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSizesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sizes', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('名称');
            $table->integer('company')->nullable()->comment('所属公司');
            $table->integer('type')->nullable()->comment('类型');
            $table->string('note')->nullable()->comment('备注');
            $table->string('other1')->nullable()->comment('其他信息');
            $table->string('other2')->nullable()->comment('其他信息');
            $table->string('other3')->nullable()->comment('其他信息');
            $table->string('other4')->nullable()->comment('其他信息');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sizes');
    }
}
